package com.wu.d1_math;

import java.io.IOException;

public class runtime {

    public static void main(String[] args) throws IOException, InterruptedException {
        Runtime r = Runtime.getRuntime();
        //r.exit(0);
        System.out.println(r.availableProcessors());
        System.out.println(r.totalMemory()/1024/1024);
        System.out.println(r.freeMemory()/1024/1024);
        Process p = r.exec("D:\\apifox\\Apifox.exe");
        Thread.sleep(5000);
        p.destroy();
    }
}
